Skip to content

Conversation

@MiquelRForgeFlow
Copy link
Contributor

Supersedes #4637.

@MiquelRForgeFlow
Copy link
Contributor Author

MiquelRForgeFlow commented Feb 20, 2025

/ocabot migration delivery
/ocabot migration stock_delivery

@MiquelRForgeFlow
Copy link
Contributor Author

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 17.0-ocabot-merge-pr-4751-by-MiquelRForgeFlow-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 313264a into OCA:17.0 Mar 12, 2025
2 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 313264a. Thanks a lot for contributing to OCA. ❤️

@MiquelRForgeFlow MiquelRForgeFlow deleted the 17.0_ou_delivery branch March 12, 2025 11:34
Copy link
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MiquelRForgeFlow @pedrobaeza
Tested and working, but I left a few comments. I think it can be improved. Please let me know if I can create a new PR to finish the migration if my comments are applied.

TT52315

Comment on lines +72 to +80
DEL ir.ui.view: delivery.choose_delivery_package_view_form
DEL ir.ui.view: delivery.delivery_stock_report_delivery_no_package_section_line
DEL ir.ui.view: delivery.delivery_tracking_url_warning_form
DEL ir.ui.view: delivery.label_package_template_view_delivery
DEL ir.ui.view: delivery.product_template_hs_code
DEL ir.ui.view: delivery.report_delivery_document2
DEL ir.ui.view: delivery.report_package_barcode_delivery
DEL ir.ui.view: delivery.report_package_barcode_small_delivery
DEL ir.ui.view: delivery.report_shipping2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that these records were simply moved from delivery to stock_delivery. Why not rename the xml_id instead?

Comment on lines +82 to +94
DEL ir.ui.view: delivery.stock_move_line_view_search_delivery
DEL ir.ui.view: delivery.stock_package_type_form_delivery
DEL ir.ui.view: delivery.stock_package_type_tree_delivery
DEL ir.ui.view: delivery.stock_report_delivery_aggregated_move_lines_inherit_delivery
DEL ir.ui.view: delivery.stock_report_delivery_has_serial_move_line_inherit_delivery
DEL ir.ui.view: delivery.stock_report_delivery_package_section_line_inherit_delivery
DEL ir.ui.view: delivery.view_move_line_tree_detailed_delivery
DEL ir.ui.view: delivery.view_picking_type_form_delivery
DEL ir.ui.view: delivery.view_picking_withcarrier_out_form
DEL ir.ui.view: delivery.view_picking_withweight_internal_move_form
DEL ir.ui.view: delivery.view_quant_package_weight_form
DEL ir.ui.view: delivery.view_stock_rule_form_delivery
DEL ir.ui.view: delivery.vpicktree_view_tree
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same case applies here. The only change is that sale_order_portal_content_inherit_sale_stock_inherit_website_sale_delivery was renamed to sale_order_portal_content_inherit_sale_stock_inherit_website_sale, but the content remains the same.

delivery / delivery.carrier / invoice_policy (selection) : selection_keys is now '['estimated']' ('['estimated', 'real']')
# NOTHING TO DO

delivery / sale.order / shipping_weight (float) : NEW hasdefault: compute
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sale.order can be considered a transactional record with many entries, so I think this new field should be filled using SQL instead of the ORM. Is there any specific reason to keep the ORM computation?

Comment on lines 9 to 11
<field name="name">Standard delivery</field>
</record>
<record id="product_product_delivery" model="product.product">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The product name and delivery name are fields that are translated. Why not delete translations using the delete_translations function from openupgradelib?

I got a similar comment from @pedrobaeza on #4771 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants